package com.attendance.Utils.Converter;

import com.attendance.model.Form.RecordForm;
import com.attendance.model.Record;

/**
 * Created by Inuyasha on 2016/12/1.
 */
public class RecordConverter {

    public static Record convert(RecordForm recordForm){
        Record record = new Record();
        record.setId(recordForm.getId());
        record.setRecord1(recordForm.getRecord1());
        record.setRecord2(recordForm.getRecord2());
        record.setTime(recordForm.getTime());
        record.setUid(recordForm.getUid());
        return record;
    }
}
